<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns:c="http://java.sun.com/jstl/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
	  xmlns:jsp="http://java.sun.com/JSP/Page"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:s="http://jboss.com/products/seam/taglib"
	  xmlns:spring="http://www.springframework.org/tags"
	  xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:clickframes="http://${appspec.domain}"
	  xmlns="http://www.w3.org/1999/xhtml">
<f:loadBundle basename="messages" var="messages" />
<fmt:setBundle basename='messages' scope='application' />

<ui:composition
    template="/WEB-INF/facelets/layout/layout.xhtml">

	<ui:define name="title">Add or Edit Page</ui:define>
	<ui:param name="clickframesPage" value="edit" />

	<ui:define name="page-content">

	<clickframes:messages />

	<h:form id="editPage" >
	<s:validateAll>
	  
		<div class="grid_4 suffix_2" id="editTitle">
		    <clickframes:edit-editPage-title />
		    <div class="field-message"><clickframes:edit-editPage-title-message /></div>
		</div>
		
		<div class="grid_4" id="editContent">
		    <clickframes:edit-editPage-content />
		    <div class="field-message"><clickframes:edit-editPage-content-message /></div>
		</div>
		
		<div class="grid_2" id="editActions">
		    <clickframes:edit-editPage-save />
		    <c:choose>
		    <c:when test="${editController.page.id ne null}">
		    	<div id="cancel"><a href="page.seam?id=${editController.page.id}">Cancel</a></div>
		    </c:when>
		    <c:otherwise>
		    	<div id="cancel"><a href="javascript:history.back(1);">Back</a></div>
		    </c:otherwise>
		    </c:choose>
		</div>
		
		<div class="clear"></div>
		  
	</s:validateAll>
	</h:form>

	<script type="text/javascript">
	$(document).ready(function(){
	  $("#editPage\\:title").inputLabel("Give this page a name",{color:"#cccccc"});;
	  $("#editPage\\:content").inputLabel("Give this page some content",{color:"#cccccc"});;
	});
	</script>

    </ui:define>
</ui:composition>
</html><!-- clickframes::version=3933690046::clickframes -->